/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.dinnermate.gui;

import java.util.Date;
import java.util.Calendar;
import java.text.SimpleDateFormat;

/**
 *
 * @author turko
 */
public class ScheduleManager{

    Date currentDate = Calendar.getInstance().getTime();
    Date selectedDate;

    // building parameters
    int startBox;

    ScheduleManager() {

    }

    public void buildMonth(int month, int year) {
            selectedDate = new Date(year+1900, month,1);
            Calendar.getInstance().setTime(selectedDate);
            // find starting box for month
            startBox = selectedDate.getDay();
    }

    public int getStartBox() {
        return startBox;
    }

    public Date getSelDate() {
        return selectedDate;
    }
}
